package com.price.common.recyclerview

import android.view.ViewGroup
import androidx.annotation.LayoutRes


/**
 */
abstract class BaseSimpleAdapter<T> :
    BaseAdapter<T, BaseViewHolder> {

    constructor()
    constructor(datas: MutableList<T>?) : super(datas)

    override fun onCreateDefViewHolder(parent: ViewGroup, viewType: Int): BaseViewHolder {
        return createBaseViewHolder(parent, viewHolderLayoutResId)
    }

    @get:LayoutRes
    protected abstract val viewHolderLayoutResId: Int
}
